﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskMessage.DataAccess
{
    /// <summary>
    /// mssql数据库
    /// </summary>
    public class DataMssqlAccess :IData
    {
        public List<MessageEntity> messageList(int topnum)
        {
            List<MessageEntity> lst = new List<MessageEntity>();

            MessageEntity m = new MessageEntity();
            m.FormID = "";
            m.FormName = "";
            m.ID = "1";
            m.MessageTime = DateTime.Now;
            m.Title = "中华人民共和国";
            m.ToID = "test37211@126.com";
            m.ToName = "鄂尔多斯";
            m.MessageSendClass = "TaskMessage.Mail,SendMessageMail";
            m.Txt = "<b>测试邮件内容</b>";
            lst.Add(m);

            return lst;
        }


        public bool updateMessageStatus(string id, int status)
        {
            bool rBool = false;

            return rBool;
        }
    }
}
